//
// Created on 2024/10/21.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#include "ohos_video_source_wrapper.h"


namespace ohosrtc {

OHOSVideoSourceWrapper::OHOSVideoSourceWrapper(rtc::scoped_refptr<ohoswebrtc::OHOSVideoSourceInterface> video_source)
    : video_source_(video_source) {}

void OHOSVideoSourceWrapper::OnFrame(const webrtc::VideoFrame &frame) {
  if (video_source_) {
    video_source_->OnCapturedFrame(frame);
  }
}

}


